﻿<Window x:Class="Linxiao.SP.Tools.GroupUsersMover.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Linxiao.SP.Tools.GroupUsersMover"
        Title="Cross Site Collection Groups Mover" Height="456" Width="738" AllowDrop="True" AllowsTransparency="False" BorderThickness="0" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="#FFADBACE">
    <Grid Background="#00000000">
      
        <GroupBox Header="Sharepoint Site 1" Height="393" HorizontalAlignment="Left" Margin="12,12,0,0" Name="gbSite1" VerticalAlignment="Top" Width="292">
            <Grid Height="366" Name="gdSite1" Width="277">
                <Label Content="Site Url" Height="28" Name="lbSiteUrl1" Width="50" FontWeight="Normal" Margin="0,0,227,338" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="45,0,0,0" Name="tbSite1Url" VerticalAlignment="Top" Width="187" BorderThickness="1" AutoWordSelection="True" />
                <Button Content="" Height="27" HorizontalAlignment="Left" Margin="238,-1,0,0" Name="btSite1Load" VerticalAlignment="Top" Width="33" Click="btSite1Load_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/Linxiao.SP.Tools.GroupUsersMover;component/Images/refresh.png" Stretch="None" TileMode="None" />
                    </Button.Background>
                </Button>
                <TreeView Height="332" HorizontalAlignment="Left" Margin="6,34,0,0" Name="tvSite1" VerticalAlignment="Top" Width="265" BorderThickness="1" DataContext="{Binding}" PreviewMouseRightButtonUp="tvSite1_PreviewMouseRightButtonUp">
                    <TreeView.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Only Remove from the current site" Click="Site1RemoveAssociationMenuItem_Click">
                            </MenuItem>
                            <MenuItem Header="Delete" Click="Site1DeleteMenuItem_Click">
                            </MenuItem>

                        </ContextMenu>
                    </TreeView.ContextMenu>
                    <TreeView.Resources>
                        <HierarchicalDataTemplate DataType="{x:Type local:TreeViewNode}" ItemsSource="{Binding Children}">
                            <StackPanel Orientation="Horizontal">
                                <Image Source="{Binding Path=Icon}" Width="16" Height="16" Margin="0 2 2 2" />
                                <TextBlock Text="{Binding Name}"/>
                            </StackPanel>
                        </HierarchicalDataTemplate>
                    </TreeView.Resources>

                </TreeView>
            </Grid>
        </GroupBox>

        <GroupBox Header="Sharepoint Site 2" Height="393" HorizontalAlignment="Left" Margin="412,10,0,0" Name="gbSite2" VerticalAlignment="Top" Width="292">
            <Grid Height="366" Name="gdSite2" Width="277">
                <Label Content="Site Url" Height="28" Name="lbSiteUrl2" Width="50" FontWeight="Normal" Margin="0,0,227,338" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="45,0,0,0" Name="tbSite2Url" VerticalAlignment="Top" Width="184" BorderThickness="1" AutoWordSelection="True" />
                <Button Content="" Height="27" HorizontalAlignment="Left" Margin="235,-1,0,0" Name="btSite2Load" VerticalAlignment="Top" Width="36" Click="btSite2Load_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/Linxiao.SP.Tools.GroupUsersMover;component/Images/refresh.png" Stretch="None" TileMode="None" />
                    </Button.Background>
                </Button>
                <TreeView Height="332" HorizontalAlignment="Left" Margin="6,34,0,0" Name="tvSite2" VerticalAlignment="Top" Width="265" BorderThickness="1" PreviewMouseRightButtonUp="tvSite2_PreviewMouseRightButtonUp">
                    <TreeView.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Only Remove from the current site" Click="Site2RemoveAssociationMenuItem_Click">
                            </MenuItem>
                            <MenuItem Header="Delete" Click="Site2DeleteMenuItem_Click">
                            </MenuItem>

                        </ContextMenu>
                    </TreeView.ContextMenu>
                    <TreeView.Resources>
                        <HierarchicalDataTemplate DataType="{x:Type local:TreeViewNode}" ItemsSource="{Binding Children}">
                            <StackPanel Orientation="Horizontal">
                                <Image Source="{Binding Path=Icon}" Width="16" Height="16" Margin="0 2 2 2" />
                                <TextBlock Text="{Binding Name}"/>
                            </StackPanel>
                        </HierarchicalDataTemplate>
                    </TreeView.Resources>
                </TreeView>
            </Grid>
        </GroupBox>
        <Button Content="" Height="62" HorizontalAlignment="Left" Margin="310,121,0,0" Name="btMoveToRight" VerticalAlignment="Top" Width="96" Click="btMoveToRight_Click">
            <Button.Background>
                <ImageBrush ImageSource="/Linxiao.SP.Tools.GroupUsersMover;component/Images/rightarrow.png" Stretch="None" TileMode="None" />
            </Button.Background>
        </Button>
        <Button Content="" Height="64" HorizontalAlignment="Left" Margin="310,225,0,0" Name="btMoveToLeft" VerticalAlignment="Top" Width="96" Click="btMoveToLeft_Click">
            <Button.Background>
                <ImageBrush ImageSource="/Linxiao.SP.Tools.GroupUsersMover;component/Images/leftarrow.png" Stretch="None" TileMode="None" />
            </Button.Background>
        </Button>
    </Grid>
</Window>
